import request from '@/utils/request'

export function login (parameter) {
    return request({
      url: '/api/auth/login',
      method: 'post',
      data: parameter
    })
  }

  export function logout () {
    return request({
      url: '/api/auth/logout',
      method: 'post'
    })
  }

  export function getInfo () {
    return request({
      url: '/api/auth/login/info',
      method: 'get'
    })
  }
  